﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _5._20._1
{
    class animal
    {
        public string leg;

        public string Leg { get => leg; set => leg = value; }

        public void Eat() {
            Console.WriteLine("我能吃");
        }

        public void Walk() {
            Console.WriteLine("我能走路");
        }

        public void Sleep() {
            Console.WriteLine("我能睡");
        }

        public virtual void Cry() {
            Console.WriteLine("我能叫");
        }
    }
}
